package org.jeecg.modules.demo.spcFlow.service.impl;

import org.jeecg.modules.demo.spcFlow.entity.SpcFlowMasterDetail;
import org.jeecg.modules.demo.spcFlow.mapper.SpcFlowMasterDetailMapper;
import org.jeecg.modules.demo.spcFlow.service.ISpcFlowMasterDetailService;
import org.springframework.stereotype.Service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.Resource;

/**
 * @Description: spc_flow_master_detail
 * @Author: jeecg-boot
 * @Date:   2023-12-14
 * @Version: V1.0
 */
@Service
public class SpcFlowMasterDetailServiceImpl extends ServiceImpl<SpcFlowMasterDetailMapper, SpcFlowMasterDetail> implements ISpcFlowMasterDetailService {

	@Resource
	private SpcFlowMasterDetailMapper spcFlowMasterDetailMapper;

	@Override
	public List<SpcFlowMasterDetail> selectByMainId(String mainId) {
		return spcFlowMasterDetailMapper.selectByMainId(mainId);
	}

	@Override
	public SpcFlowMasterDetail getOneByFlowIdAndStep(String step, String id) {
		return spcFlowMasterDetailMapper.getOneByFlowIdAndStep(step,id);
	}
}
